MAINTAINERCLEANFILES = Makefile.in

AM_CPPFLAGS = -I$(top_srcdir)/include

EXTRA_DIST = sorttest.txt sorted.txt test-thcoll.sh test-thbrk.sh test-thwbrk.sh

TESTS_ENVIRONMENT = top_builddir=$(top_builddir)

TESTS = \
	test_thctype \
	test_thcell \
	test_thinp \
	test_thrend \
	test_thstr \
	test-thcoll.sh \
	test_thwchar \
	$(NULL)

if ENABLE_DICT
TESTS += \
	test-thbrk.sh \
	test-thwbrk.sh \
	$(NULL)
endif

check_SCRIPTS = \
	test-thcoll.sh \
	test-thbrk.sh \
	test-thwbrk.sh \
	$(NULL)

check_PROGRAMS = \
	test_thctype \
	test_thcell \
	test_thinp \
	test_thrend \
	test_thstr \
	thsort \
	test_thbrk \
	test_thwchar \
	test_thwbrk \
	$(NULL)

test_thctype_SOURCES = test_thctype.c
test_thctype_LDADD = $(top_builddir)/src/thctype/libthctype.la

test_thcell_SOURCES = test_thcell.c
test_thcell_LDADD = \
	$(top_builddir)/src/thcell/libthcell.la \
	$(top_builddir)/src/thctype/libthctype.la

test_thinp_SOURCES = test_thinp.c
test_thinp_LDADD = \
	$(top_builddir)/src/thinp/libthinp.la \
	$(top_builddir)/src/thcell/libthcell.la \
	$(top_builddir)/src/thctype/libthctype.la

test_thrend_SOURCES = test_thrend.c
test_thrend_LDADD = \
	$(top_builddir)/src/thrend/libthrend.la \
	$(top_builddir)/src/thcell/libthcell.la \
	$(top_builddir)/src/thctype/libthctype.la

test_thstr_SOURCES = test_thstr.c
test_thstr_LDADD = \
	$(top_builddir)/src/thstr/libthstr.la \
	$(top_builddir)/src/thctype/libthctype.la

thsort_SOURCES = thsort.c
thsort_LDADD = \
	$(top_builddir)/src/thcoll/libthcoll.la \
	$(top_builddir)/src/thctype/libthctype.la

test_thbrk_SOURCES = test_thbrk.c
test_thbrk_LDADD = \
	$(top_builddir)/src/thbrk/libthbrk.la \
	$(top_builddir)/src/thwchar/libthwchar.la \
	$(top_builddir)/src/thstr/libthstr.la \
	$(top_builddir)/src/thctype/libthctype.la

test_thwchar_SOURCES = test_thwchar.c
test_thwchar_LDADD = $(top_builddir)/src/thwchar/libthwchar.la

test_thwbrk_SOURCES = test_thwbrk.c
test_thwbrk_LDADD = \
 	$(top_builddir)/src/thwbrk/libthwbrk.la \
	$(top_builddir)/src/thwchar/libthwchar.la \
	$(top_builddir)/src/thbrk/libthbrk.la \
	$(top_builddir)/src/thwchar/libthwchar.la \
	$(top_builddir)/src/thstr/libthstr.la \
	$(top_builddir)/src/thctype/libthctype.la

